<template>
  <div class="people-see">
    <big-title name="大家都在看"></big-title>
    <div class="wrap">
      <product-show v-for="item in goodsList" :key="item.id" :obj="item"></product-show>
    </div>
  </div>
</template>

<script>
import BigTitle from "@/components/common/BigTitle";
import ProductShow from "@/components/ProductShow";
import { GetPeopleSeeData } from "@/request/api";
export default {
  props: ["goodsid"],
  components: {
    BigTitle,
    ProductShow
  },
  data() {
    return {
      goodsList: []
    };
  },
  created() {
    // console.log(this.goodsid)
    GetPeopleSeeData({
      id: this.goodsid
    }).then(res => {
      console.log(res);
      this.goodsList = res.data.goodsList;
    });
  }
};
</script>

<style lang="less" scoped>
.people-see {
  .wrap {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
  }
}
</style>
